import request from '@/utils/request'

// 查询实时遥测列表
export function listRealtime(query) {
  return request({
    url: '/kamenxian/jiankongzhongxin/realtime/list',
    method: 'get',
    params: query
  })
}

// 查询实时遥测详细
export function getRealtime(monitorId) {
  return request({
    url: '/kamenxian/jiankongzhongxin/realtime/' + monitorId,
    method: 'get'
  })
}

// 新增实时遥测
export function addRealtime(data) {
  return request({
    url: '/kamenxian/jiankongzhongxin/realtime',
    method: 'post',
    data: data
  })
}

// 修改实时遥测
export function updateRealtime(data) {
  return request({
    url: '/kamenxian/jiankongzhongxin/realtime',
    method: 'put',
    data: data
  })
}

// 删除实时遥测
export function delRealtime(monitorId) {
  return request({
    url: '/kamenxian/jiankongzhongxin/realtime/' + monitorId,
    method: 'delete'
  })
}
